﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="Auros.EPiSiteMap.Admin" %>

<%@ Register TagPrefix="EPiServerUI" Namespace="EPiServer.UI.WebControls" Assembly="EPiServer.UI" %>
<%@ Register TagPrefix="EPiServerScript" Namespace="EPiServer.ClientScript.WebControls" Assembly="EPiServer" %>
<%@ Register TagPrefix="EPiServerScript" Namespace="EPiServer.UI.ClientScript.WebControls" Assembly="EPiServer.UI" %>

<%@ Register TagPrefix="Auros" Namespace="Auros.EPiSiteMap.WebControls" Assembly="Auros.EPiSiteMap" %>

<asp:Content ContentPlaceHolderID="HeaderContentRegion" runat="server">
    <link type="text/css" rel="stylesheet" media="all" href="/Modules/Sitemap/Styles/SitemapAdmin.css" />
</asp:Content>

<asp:Content ContentPlaceHolderID="MainRegion" runat="server">
    <div class="epi-contentArea">
        <p>Configure which sitemaps should be generated for the site/host combinations. Choose the languages which should be generated for pages in each sitemap file.</p>
        <fieldset>
            <legend><h2>Site Map Files</h2></legend>
            <p>Selected the sitemaps to be created.</p>
            <asp:Repeater ID="SitesRepeater" runat="server">
                <ItemTemplate>
                    <h4><%# ((EPiServer.Licensing.SiteInformation)(Container.DataItem)).SiteId %></h4>
                    <Auros:SitemapTable ID="SiteHostsTable" runat="server" CssClass="epi-default"
                        SiteID="<%# ((EPiServer.Licensing.SiteInformation)(Container.DataItem)).SiteId %>" />                    
                </ItemTemplate>
            </asp:Repeater>
            
        </fieldset>
        
        <fieldset>
            <legend><h2>Site Map Index File</h2></legend>
            <p>If multiple sitemap files are created, an index file should be used for submitting to search engines. </p>
            <asp:CheckBox ID="SiteMapIndexRequired" runat="server" Text="Create index file:" TextAlign="Left" />
            <br />
            <asp:Label ID="SiteMapIndexFileNameLabel" AssociatedControlID="SiteMapIndexFileName" runat="server">Filename:</asp:Label>
            <asp:TextBox ID="SiteMapIndexFileName" runat="server" />
        </fieldset>

        <h4>Notes</h4>
        <ul>
            <li>Sitemap files are generated using the Sitemap scheduled job.</li>
            <li>Filenames should be entered as relative to the root folder of the website (i.e sitemap.xml or folder/sitemap.xml)</li>
        </ul>
    
        <div class="epi-buttonContainer">
            <EPiServerUI:ToolButton ID="ApplyButton" runat="server" Text="Save" SkinID="Save" OnClick="SaveButtonClick" />
        </div>
    </div>
</asp:Content>